by Mark Roberts (2 Submissions)
Category: Internet/HTML
Compatability: Visual Basic 3.0
Difficulty: Advanced
Date Added: Wed 3rd February 2021
Rating:
(3 Votes)
Converts IE Favorites to Netscape Bookmarks and vice-versa in just 9 lines of code
Inputs
Just the Netscape bookmark.htm file path
Assumes
To use this code, make sure you have an Internet Control component in your project. Then its simple - call the functions with the path of your netscape bookmark file.
Side Effects
The export operation will not merge with the Netscape file - it will overwrite it.
Dim ShellUIHelper1 As ShellUIHelper
Sub ImportFavorites(NetscapePath As String)
Set ShellUIHelper1 = New ShellUIHelper
ShellUIHelper1.ImportExportFavorites True, NetscapePath
End Sub
Sub ExportFavorites(NetscapePath As String)
Set ShellUIHelper1 = New ShellUIHelper
ShellUIHelper1.ImportExportFavorites False, NetscapePath
End Sub